/*
 * $Id: ResponseWrapper.java 42 2013-04-17 15:33:59Z gabakyan $
 * $Author: gabakyan $
 * $Revision: 42 $
 * $Date: 2013-04-17 15:33:59 +0000 (Wed, 17 Apr 2013) $
 *
 * Copyright (c) 2013 Supply Chain Intelligence (SCI), Inc.
 * http://www.scintelligence.com/, Email: info@scintelligence.com
 * All rights reserved.
 *
 * This file is part of Logistics Map.
 *
 * Logistics Map is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, version 3 of the License.
 *
 * Logistics Map is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Logistics Map.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.sci.logisticsmap.support.model;

import java.io.Serializable;

/**
 * The class <code>ResponseWrapper</code> represents the response content wrapper.
 *
 * @author gabakyan@gmail.com (Last modified by $Author: gabakyan $)
 * @version $Revision: 42 $
 *
 */
public/* final*/ class ResponseWrapper<Content extends Serializable> implements Serializable {
    /**
     * The serial version id.
     */
    private static final long serialVersionUID = 1L;

    /**
     * The status.
     */
    private int status;
    /**
     * The message.
     */
    private String message;
    /**
     * The content.
     */
    private Content content;

    /**
     * The default constructor.
     * Constructs a new response wrapper.
     */
    public ResponseWrapper() {
    }

    /**
     * Constructs a new response wrapper.
     *
     * @param status The status.
     */
    public ResponseWrapper(int status) {
        this.status = status;
    }

    /**
     * Gets the status.
     *
     * @return The status.
     */
    public int getStatus() {
        return status;
    }

    /**
     * Sets the status.
     *
     * @param status The status.
     */
    public void setStatus(int status) {
        this.status = status;
    }

    /**
     * Gets the message.
     *
     * @return The message.
     */
    public String getMessage() {
        return message;
    }

    /**
     * Sets the message.
     *
     * @param message The message.
     */
    public void setMessage(String message) {
        this.message = message;
    }

    /**
     * Gets the content.
     *
     * @return The content.
     */
    public Content getContent() {
        return content;
    }

    /**
     * Sets the content.
     *
     * @param content The content.
     */
    public void setContent(Content content) {
        this.content = content;
    }
}
